<?php
include 'funcs.php';
if (isset($_SESSION['gc_das_al']) && $_SESSION['gc_das_al'] == 'yea') {

	foreach ($adminfuncs as $adminfunc) {
		$adminfunc = str_replace('gc_das_admin_','',$adminfunc);
		echo '<a href="?p='.$adminfunc.'">'.ucfirst(str_replace('_',' ',$adminfunc)).'</a> | ';
	}
	
	echo '<br><br><br><br>';
	
	if (isset($_REQUEST['p'])) {
		if (function_exists('gc_das_admin_'.$_REQUEST['p'])) {
			eval('echo gc_das_admin_'.$_REQUEST['p'].'();');
		}
		else
		{
			echo gc_das_admin_home();
		}
	}
	else
	{
		echo gc_das_admin_home();
	}


	
}
else
{
?>
<form action="" method="post">
<input type="text" name="admin_gc_das_login" /> <input type="submit" name="admin_gc_das_sub" />
</form>
<?php
}
?>